home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ccccppppaaaacccckkkk((((3333GGGG)))) ccccppppaaaacccckkkk((((3333GGGG))))
-
-
-
- NNNNAAAAMMMMEEEE
- ccccppppaaaacccckkkk - specifies RGBA color with a single packed 32-bit integer
-
- CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
- vvvvooooiiiidddd ccccppppaaaacccckkkk((((ppppaaaacccckkkk))))
- uuuunnnnssssiiiiggggnnnneeeedddd lllloooonnnngggg ppppaaaacccckkkk;;;;
-
- PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
- _p_a_c_k expects a packed integer containing the RGBA (red, green, blue,
- alpha) values you want to assign as the current color. Expressed
- in hexadecimal, the format of the packed integer is 0x_a_a_b_b_g_g_r_r,
- where:
-
- _a_a is the alpha value,
- _b_b is the blue value,
- _g_g is the green value, and
- _r_r is the red value.
-
- RGBA component values range from 0 to 0xFF (255).
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- ccccppppaaaacccckkkk sets the red, green, blue, and alpha color components of the
- currently active GL framebuffer, one of normal, popup, overlay, or
- underlay (see ddddrrrraaaawwwwmmmmooooddddeeee). The current framebuffer must be in RGB mode
- (see RRRRGGGGBBBBmmmmooooddddeeee) for the ccccppppaaaacccckkkk command to be applicable. Most drawing
- commands copy the current RGBA color components into the color bitplanes
- of the current framebuffer. Color components are retained in each draw
- mode, so when a draw mode is re-entered, red, green, blue, and alpha are
- reset to the last value specified in that draw mode.
-
- Color component values range from 0, specifying no intensity, through
- 255, specifying maximum intensity. For example, ccccppppaaaacccckkkk((((0000xxxxFFFFFFFF000000004444000088880000)))) sets
- red to 0x80 (half intensity), green to 0x40 (quarter intensity), blue to
- 0 (off), and alpha to 0xFF (full intensity).
-
- It is an error to call ccccppppaaaacccckkkk while the current framebuffer is in color
- map mode.
-
- The color components of all framebuffers in RGB mode are set to zero when
- ggggccccoooonnnnffffiiiigggg is called.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- c, drawmode, gRGBcolor, lmcolor
-
- NNNNOOOOTTTTEEEE
- ccccppppaaaacccckkkk can also be used to modify the current material while lighting is
- active (see llllmmmmccccoooolllloooorrrr).
-
- Because only the normal framebuffer currently supports RGB mode, ccccppppaaaacccckkkk
- should be called only while draw mode is NNNNOOOORRRRMMMMAAAALLLLDDDDRRRRAAAAWWWW. Use ggggeeeettttggggddddeeeesssscccc to
- determine whether RGB mode is available in draw mode NNNNOOOORRRRMMMMAAAALLLLDDDDRRRRAAAAWWWW.
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-